<!doctype html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Template • TodoMVC</title>
		<!--<link rel="stylesheet" href="node_modules/todomvc-common/base.css">-->
		<link rel="stylesheet" href="node_modules/todomvc-app-css/index.css">
		<!-- CSS overrides - remove if you don't need it -->
		<link rel="stylesheet" href="css/app.css">

	</head>
	<body>
		<section ng-app="todoApp" ng-controller="todoCtrl" class="todoapp">
			<header class="header">
				<h1>todos</h1>
				<!--输入任务的input-->
				<form  ng-submit="addTodo()">
					<input class="new-todo" ng-model="todo" placeholder="What needs to be done?" autofocus>
				</form>
			</header>
			<!-- This section should be hidden by default and shown when there are todos -->
			<section class="main">
				<!--全选切换-->
				<input ng-hide="!todoList.length" class="toggle-all"  ng-click="changeToggleAll()" type="checkbox" ng-model="toggleAll">
				<label for="toggle-all">Mark all as complete</label>
				<ul class="todo-list">
					<!-- These are here just to show the structure of the list items -->
					<!-- List items should get the class `editing` when editing and `completed` when marked as completed -->
					<!--editing是修改状态-->
					<!--completed是已完成的状态-->
					<!--<li class="completed">-->
						<!--<div class="view">-->
							<!--<input class="toggle" type="checkbox" checked>-->
							<!--<label>Taste JavaScript</label>-->
							<!--<button class="destroy"></button>-->
						<!--</div>-->
						<!--<input class="edit" value="Create a TodoMVC template">-->
					<!--</li>-->
					<li todo-focus ng-repeat="todo in todoList |filter:completedStatus track by $index " ng-class="{completed:todo.completed,editing:todo==edtingTodo}">
						<div class="view">
							<input ng-click="saveTodo()" class="toggle" type="checkbox" ng-model="todo.completed">
							<label  ng-dblclick="editTodo(todo)" ng-bind="todo.text"> </label>
							<!--<label ng-dblclick="editTodo(todo)">{{todo.text}}</label>-->
							<button class="destroy" ng-click="delTodo(todo)"></button>
						</div>
						<input class="edit" ng-blur="saveTodo()"  ng-model="todo.text">
					</li>
				</ul>
			</section>
			<!-- This footer should hidden by default and shown when there are todos -->
			<footer  ng-hide="!todoList.length" class="footer">
				<!-- This should be `0 items left` by default -->
				<!--已完成的数量-->
				<span class="todo-count"><strong ng-bind="todoCount"></strong> item left</span>
				<!-- Remove this if you don't implement routing -->
				<!--状态切换的选择标签-->
				<ul class="filters">
					<li>
						<a ng-click="changeStatus('all')" ng-class="{selected:completedStatus.completed==undefined}" href="#/">All</a>
					</li>
					<li>
						<a ng-click="changeStatus('active')"  ng-class="{selected:completedStatus.completed==false}"  href="#/active">Active</a>
					</li>
					<li>
						<a ng-click="changeStatus('completed')" ng-class="{selected:completedStatus.completed==true}" href="#/completed">Completed</a>
					</li>
				</ul>
				<!-- Hidden if no completed items are left ↓ -->
				<!--清除掉所有已完成的状态-->
				<button ng-click="clearCompleted()" ng-show="isShowCompleted" class="clear-completed">Clear completed</button>
			</footer>
		</section>
		<footer  class="info">
			<p>Double-click to edit a todo</p>
			<!-- Remove the below line ↓ -->
			<p>Template by <a href="http://sindresorhus.com">Sindre Sorhus</a></p>
			<!-- Change this out with your name and url ↓ -->
			<p>Created by <a href="http://todomvc.com">you</a></p>
			<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
		</footer>
		<!-- Scripts here. Don't remove ↓ -->
		<!--<script src="node_modules/todomvc-common/base.js"></script>-->
		<!--1引包-->
		<script src="../js/angular-1.5.8/angular.js"></script>
		<script src="js/service.js"></script>
		<script src="js/directive.js"></script>
		<script src="js/app.js"></script>
	</body>
</html>
